import { type } from './../action'

const initialValue = {
    menuName:''
}

const reducer = (state=initialValue,action) => {
    switch(action.type) {
        case type.SWITCH_MENU:
            return {...state,menuName:action.value}
        default:
            return {...state}
    }
}

export default reducer